using System;
using System.Collections.Generic;
using System.Text;

namespace Framework.StringSplit.Processors
{
    internal class SplitEscapedAsStringListProcessor : BaseStringSplitProcessor<List<string>>
    {
        public override List<string> Process(StringSplitHandler parameters, string text)
        {
            //_.L("SplitEscapedAsStringListProcessor");
            //_.Nv("Text", text);
            //_.Nv("Esc", parameters.Escape);
            //_.Nv("Seperator", Is.EmptyArray(parameters.SeperatorChar) ? "null" : parameters.SeperatorChar[0].ToString());
            //_.Nv("Count", parameters.Count);

            return SplitEscaped(
                parameters.Escape,
                text,
                parameters.SeperatorChar,
                parameters.Count,
                parameters.RemoveEmptyEntries,
                parameters.Trim);
        }
    }
}